package com.polaris.live.viewmodel.me

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.common.network.request
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.liveService
import com.polaris.live.resp.back_resp.PartyRoomResp

/**
 * RoomMeViewModel
 *
 * @author Created by 半仙 on 2024/9/20/020 10:07
 */
class RoomMeViewModel : BaseViewModel() {

    val mPartyRoomLiveData = MutableLiveData<ResultState<PartyRoomResp>>()
    fun getPartyRoom() {
        request({ liveService.getPartyRoom() }, mPartyRoomLiveData)
    }
}